﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<UncleBobWebService.Models.ExtendedQuestion>" %>

<!DOCTYPE html>

<html>
<head id="ExtendedQuestion" runat="server">
    <title>Application</title>
    <link href="/Theme/UncleBobTheme.css" rel="Stylesheet" />
</head>

<body>
    <h2>Question</h2>
    <div class="body">

    <!-- Begin Form -->
    <% using (Html.BeginForm("FormAction", "ApplicantApply", FormMethod.Post)) {%>
        <div class="box">
            <div class="left-justify">
                <div><%=Html.DisplayFor(model => Model.Question)%></div>
                <br />
                <textarea name="answer" style="resize: none;" rows="10" cols="72"></textarea>
            </div>
        </div>

        <!-- Only display previous button if count is greater than zero -->
        <% if (Model.RuntimeCount == 0) {%>
            <input class="button" type="submit" name="next" value="Next" />
        <%}%>
        <% else {%>
            <input class="button" type="submit" name="previous" value="Previous" />
            <input class="button" type="submit" name="next" value="Next" />
        <%}%>
    <%}%>

    </div>
</body>

</html>
